package crudfx;

import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import crudfx.sound.*;
import crudfx.container.*;
import crudfx.util.*;
import crudfx.interop.*;
import crudfx.data.*;
import crudfx.field.*;
import crudfx.container.*;
import crudfx.control.*;
import javafx.scene.image.*;
import javafx.scene.input.*;

/**
 * @profile desktop
 * @author Sergey Surikov
 */

var nn:Integer=2;
Stage {
    icons:[
	Image {url:"{(__DIR__)}util/resources/crudfx16.png"}
	Image {url:"{(__DIR__)}util/resources/crudfx32.png"}
    ]
    title:"About CRUDfx SDK"
    width:400
    height:300
    scene:Scene {
	content:[
	    Text {font:Font {size:16} x:10 y:30 content:"{crudfx.util.Tools.getVersion()}"}
            UINode{
                width:200
                height:100
                content:StandardList{
                    key:"value"
                    row:bind nn with inverse
                    data:[
                        Fields{fields:[NamedValue{name:"value" value:"first"}]}
                        Fields{fields:[NamedValue{name:"value" value:"second"}]}
                        Fields{fields:[NamedValue{name:"value" value:"third"}]}
                        Fields{fields:[NamedValue{name:"value" value:"fourth"}]}
                        Fields{fields:[NamedValue{name:"value" value:"fifth"}]}
                        Fields{fields:[NamedValue{name:"value" value:"sixth"}]}
                        Fields{fields:[NamedValue{name:"value" value:"seventh"}]}
                        ]
                    action:function():Void{
                        println(nn);
                        }
                    }
                }
            ]
        }
    }



